{#
(C) Copyright 2011 Jose Blanco <johncube78[a]gmail.com>

This file is part of "vikuit".

"vikuit" is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

"vikuit" is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with "vikuit".  If not, see <http://www.gnu.org/licenses/>.
#}

{% extends "module/admin/layout/layout.html" %}

{% block title %}{{ _('Web stats') }}{% endblock %}

{% block content %}
	
	<h1>{{ _('Web stats') }}</h1>
	
	Vikuit. Version: {% if app.version %}{{ app.version}} - {% endif %}
 	
 	<div style="width:50%">
 	<table id="adminstats"> 
				
				<thead> 
					<tr> 
						<th></th> 
						<th></th> 
					</tr> 
				</thead> 
				<tfoot> 
					<tr> 
						<td width="50" >{{ _('users') }}</td> 
						<td>{{app.users  }}</td> 
					</tr> 
				</tfoot> 
				<tbody> 
					<tr> 
						<td>{{_('articles')  }}</td> 
						<td>{{ app.articles }}</td> 
					</tr> 
					<tr> 
						<td>{{ _('communities') }}</td> 
						<td>{{ app.communities }}</td> 
					</tr> 
					<tr> 
						<td>{{ _('started threads') }}</td> 
						<td>{{ app.threads }}</td> 
					</tr> 

				</tbody> 
			</table> 
			
	</div>
 	<script type="text/javascript" src="http://www.stevefenton.co.uk/cmsfiles/assets/File/jquery.charts.js"></script> 
 	
 	<script type="text/javascript"> 
 		$("#adminstats").charts(); 
	</script> 			 

	

{% endblock %}